import myaxios from "../MyAxios";
import URLENV from "@/http/BaseUrl";
const UCURL = URLENV.UCURL
const customerApi = {
    //客户列表
    customerList(params) {
        return myaxios.get(UCURL + '/customer/list', params)
    },
    //通过cid查询客户信息
    customerQueryById(params) {
        return myaxios.get(UCURL + '/customer/query', params)
    },
    //行业列表
    industryList() {
        return myaxios.get(UCURL + '/customer/industry')
    },
    //销售人员列表
    staffList() {
        return myaxios.get(UCURL + '/customer/saleperson')
    },
    //付款状态
    statu(){
        return myaxios.get(UCURL + '/customer/status')
    },
    //客户来源
    querySource(){
        return myaxios.get(UCURL + '/customer/source')
    },
    //性别
    querySex(){
        return myaxios.get(UCURL + '/customer/gender')
    },
    //修改客户
    customerUpdate(params){
        return myaxios.post(UCURL + '/customer/update',params)
    },
    //删除客户
    customerDelete(params){
        return myaxios.post(UCURL + '/customer/delete',params)
    },
    //新增客户
    customerAdd(params){
        return myaxios.post(UCURL + '/customer/add',params)
    }
}
export default customerApi
